package com.sword.erp.order.feignclient.fallback;

import com.sword.erp.order.feignclient.StockService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 库存服务的降级服务
 * @author sword
 * @date 2021/10/10 20:43
 */
@Slf4j
@Component
public class StockServiceFallBack implements StockService {
    @Override
    public String reduceStock() {
        log.info("库存服务暂时不通，进行降级服务");
        return "failure";
    }
}
